//
//  XQAFNetworking.h
//  JoinPeso
//
//  Created by 小琦 on 2024/11/23.
//

#import <Foundation/Foundation.h>
#import "AFNetworking/AFNetworking.h"

NS_ASSUME_NONNULL_BEGIN

typedef void(^XQAFNetworkingBlock)(bool success,id responseObject,NSError * error);

@interface XQAFNetworking : NSObject
+ (void)getWithUrl:(NSString *) url pars:(NSDictionary *) pars callback:(XQAFNetworkingBlock) callback;
+ (void)getWithUrl:(NSString *) url pars:(NSDictionary *) pars auth:(NSString *) auth callback:(XQAFNetworkingBlock) callback;
+ (void)postWithUrl:(NSString *) url pars:(NSDictionary *) pars callback:(XQAFNetworkingBlock) callback;
+ (void)postWithUrl:(NSString *) url pars:(NSDictionary *) pars auth:(NSString *) auth callback:(XQAFNetworkingBlock) callback;

+ (void)uploadImageUrl:(NSString *)url pars:(NSDictionary *) pars imageData:(NSData *)imageData callback:(XQAFNetworkingBlock) callback;
@end

NS_ASSUME_NONNULL_END
